<!-- oEmbed -->
<link rel="alternate" type="application/json+oembed" href="<%= asciicast_oembed_url(@asciicast, :json) %>" />
<link rel="alternate" type="text/xml+oembed" href="<%= asciicast_oembed_url(@asciicast, :xml) %>" />

<!-- Open Graph -->
<meta property="og:title" content="<%= title(@asciicast) %>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<%= Routes.asciicast_url(@conn, :show, @asciicast) %>" />
<meta property="og:image" content="<%= Routes.asciicast_url(@conn, :show, @asciicast) %>.png" />
<meta property="og:description" content="<%= short_text_description(@asciicast) %>" />
<meta property="og:site_name" content="asciinema.org" />

<!-- Twitter card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@asciinema" />
<meta name="twitter:title" content="<%= title(@asciicast) %>" />
<meta name="twitter:url" content="<%= Routes.asciicast_url(@conn, :show, @asciicast) %>" />
<meta name="twitter:description" content="<%= short_text_description(@asciicast) %>" />
<meta name="twitter:image" content="<%= Routes.asciicast_url(@conn, :show, @asciicast) %>.png" />

<!-- application/x-asciicast -->
<link rel="alternate" type="<%= alternate_link_type(@asciicast) %>" href="<%= asciicast_file_url(@asciicast) %>">

<%= if @asciicast.private do %>
  <meta name="robots" content="noindex, nofollow">
  <meta name="referrer" content="origin">
<% end %>
